home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / GNU / gawk_2_14.lha / gawk-2.14 / gawk-2.14_amiga_diff < prev    next >
Encoding:
Text File  |  1993-01-29  |  12.8 KB  |  447 lines

  1. diff -2rcN gawk-2.14/Makefile gawk/Makefile
  2. *** gawk-2.14/Makefile
  3. --- gawk/Makefile    Thu Jan 28 22:05:17 1993
  4. ***************
  5. *** 0 ****
  6. --- 1,70 ----
  7. + # Makefile for GNU Awk for Amiga
  8. + #
  9. + # Copyright (C) 1986, 1988-1992 the Free Software Foundation, Inc.
  10. + # 
  11. + # This file is part of GAWK, the GNU implementation of the
  12. + # AWK Progamming Language.
  13. + # 
  14. + # GAWK is free software; you can redistribute it and/or modify
  15. + # it under the terms of the GNU General Public License as published by
  16. + # the Free Software Foundation; either version 2 of the License, or
  17. + # (at your option) any later version.
  18. + # 
  19. + # GAWK is distributed in the hope that it will be useful,
  20. + # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  22. + # GNU General Public License for more details.
  23. + # 
  24. + # You should have received a copy of the GNU General Public License
  25. + # along with GAWK; see the file COPYING.  If not, write to
  26. + # the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  27. + OPTIMIZE=    -O2 -resident
  28. + PARSER = bison -y
  29. + CFLAGS= -DGAWK 
  30. + # object files
  31. + AWKOBJS = main.o eval.o builtin.o msg.o iop.o io.o field.o array.o \
  32. +     node.o version.o missing.o re.o getopt.o
  33. + ALLOBJS = $(AWKOBJS) awktab.o
  34. + # GNUOBJS
  35. + #    GNU stuff that gawk uses as library routines.
  36. + GNUOBJS= regex.o dfa.o
  37. + # source and documentation files
  38. + SRC =    main.c eval.c builtin.c msg.c version.c \
  39. +     iop.c io.c field.c array.c node.c missing.c re.c getopt.c
  40. + ALLSRC= $(SRC) awktab.c
  41. + AWKSRC= awk.h awk.y $(ALLSRC) patchlevel.h protos.h config.in getopt.h
  42. + GNUSRC = alloca.c alloca.s dfa.c dfa.h regex.c regex.h
  43. + COPIES = missing/system.c missing/tzset.c \
  44. +     missing/memcmp.c missing/memcpy.c missing/memset.c \
  45. +     missing/random.c missing/strcase.c missing/strchr.c \
  46. +     missing/strerror.c missing/strtod.c \
  47. +     missing/strftime.c missing/strftime.3 
  48. + # Release of gawk.  There can be no leading or trailing white space here!
  49. + REL=2.14
  50. + # rules to build gawk
  51. + gawk: $(ALLOBJS) $(GNUOBJS) $(REOBJS)
  52. +     $(CC) -o gawk $(CFLAGS) $(ALLOBJS) $(GNUOBJS) $(REOBJS) -lm $(LIBS)
  53. + $(AWKOBJS) regex.o dfa.o:    awk.h dfa.h regex.h
  54. + getopt.o:    getopt.h
  55. + main.o: patchlevel.h
  56. + awktab.c: awk.y
  57. +     $(PARSER) -v awk.y
  58. +     sed '/^extern char .malloc(), .realloc();$$/d' y.tab.c >awktab.c
  59. +     rm y.tab.c
  60. diff -2rcN gawk-2.14/builtin.c gawk/builtin.c
  61. *** gawk-2.14/builtin.c    Mon Nov 16 15:48:56 1992
  62. --- gawk/builtin.c    Wed Jan 27 21:09:49 1993
  63. ***************
  64. *** 29,33 ****
  65.   
  66.   #ifndef SRANDOM_PROTO
  67. ! extern void srandom P((int seed));
  68.   #endif
  69.   extern char *initstate P((unsigned seed, char *state, int n));
  70. --- 29,35 ----
  71.   
  72.   #ifndef SRANDOM_PROTO
  73. !   #ifndef AMIGA
  74. !     extern void srandom P((int seed));
  75. !   #endif
  76.   #endif
  77.   extern char *initstate P((unsigned seed, char *state, int n));
  78. ***************
  79. *** 859,863 ****
  80.   static char state[256];
  81.   
  82. ! #define    MAXLONG    2147483647    /* maximum value for long int */
  83.   
  84.   /* ARGSUSED */
  85. --- 861,867 ----
  86.   static char state[256];
  87.   
  88. ! #ifndef AMIGA
  89. !   #define    MAXLONG    2147483647    /* maximum value for long int */
  90. ! #endif
  91.   
  92.   /* ARGSUSED */
  93. diff -2rcN gawk-2.14/config.h gawk/config.h
  94. *** gawk-2.14/config.h
  95. --- gawk/config.h    Wed Jan 27 20:51:55 1993
  96. ***************
  97. *** 0 ****
  98. --- 1,270 ----
  99. + /*
  100. +  * config.h -- configuration definitions for gawk.
  101. +  *
  102. +  * __SYSTEM__
  103. +  */
  104. + /* 
  105. +  * Copyright (C) 1991, 1992 the Free Software Foundation, Inc.
  106. +  * 
  107. +  * This file is part of GAWK, the GNU implementation of the
  108. +  * AWK Progamming Language.
  109. +  * 
  110. +  * GAWK is free software; you can redistribute it and/or modify
  111. +  * it under the terms of the GNU General Public License as published by
  112. +  * the Free Software Foundation; either version 2, or (at your option)
  113. +  * any later version.
  114. +  * 
  115. +  * GAWK is distributed in the hope that it will be useful,
  116. +  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  117. +  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  118. +  * GNU General Public License for more details.
  119. +  * 
  120. +  * You should have received a copy of the GNU General Public License
  121. +  * along with GAWK; see the file COPYING.  If not, write to
  122. +  * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  123. +  */
  124. + /*
  125. +  * This file isolates configuration dependencies for gnu awk.
  126. +  * You should know something about your system, perhaps by having
  127. +  * a manual handy, when you edit this file.  You should copy config.h-dist
  128. +  * to config.h, and edit config.h.  Do not modify config.h-dist, so that
  129. +  * it will be easy to apply any patches that may be distributed.
  130. +  *
  131. +  * The general idea is that systems conforming to the various standards
  132. +  * should need to do the least amount of changing.  Definining the various
  133. +  * items in ths file usually means that your system is missing that
  134. +  * particular feature.
  135. +  *
  136. +  * The order of preference in standard conformance is ANSI C, POSIX,
  137. +  * and the SVID.
  138. +  *
  139. +  * If you have no clue as to what's going on with your system, try
  140. +  * compiling gawk without editing this file and see what shows up
  141. +  * missing in the link stage.  From there, you can probably figure out
  142. +  * which defines to turn on.
  143. +  */
  144. + /**************************/
  145. + /* Miscellanious features */
  146. + /**************************/
  147. + /*
  148. +  * BLKSIZE_MISSING
  149. +  *
  150. +  * Check your /usr/include/sys/stat.h file.  If the stat structure
  151. +  * does not have a member named st_blksize, define this.  (This will
  152. +  * most likely be the case on most System V systems prior to V.4.)
  153. +  */
  154. + /* #define BLKSIZE_MISSING    1 */
  155. + /*
  156. +  * SIGTYPE
  157. +  *
  158. +  * The return type of the routines passed to the signal function.
  159. +  * Modern systems use `void', older systems use `int'.
  160. +  * If left undefined, it will default to void.
  161. +  */
  162. + /* #define SIGTYPE    int */
  163. + /*
  164. +  * SIZE_T_MISSING
  165. +  *
  166. +  * If your system has no typedef for size_t, define this to get a default
  167. +  */
  168. + /* #define    SIZE_T_MISSING    1 */
  169. + /*
  170. +  * CHAR_UNSIGNED
  171. +  *
  172. +  * If your machine uses unsigned characters (IBM RT and RS/6000 and others)
  173. +  * then define this for use in regex.c
  174. +  */
  175. + /* #define CHAR_UNSIGNED    1 */
  176. + /*
  177. +  * HAVE_UNDERSCORE_SETJMP
  178. +  *
  179. +  * Check in your /usr/include/setjmp.h file.  If there are routines
  180. +  * there named _setjmp and _longjmp, then you should define this.
  181. +  * Typically only systems derived from Berkeley Unix have this.
  182. +  */
  183. + /* #define HAVE_UNDERSCORE_SETJMP    1 */
  184. + /***********************************************/
  185. + /* Missing library subroutines or system calls */
  186. + /***********************************************/
  187. + /*
  188. +  * MEMCMP_MISSING
  189. +  * MEMCPY_MISSING
  190. +  * MEMSET_MISSING
  191. +  *
  192. +  * These three routines are for manipulating blocks of memory. Most
  193. +  * likely they will either all three be present or all three be missing,
  194. +  * so they're grouped together.
  195. +  */
  196. + /* #define MEMCMP_MISSING    1 */
  197. + /* #define MEMCPY_MISSING    1 */
  198. + /* #define MEMSET_MISSING    1 */
  199. + /*
  200. +  * RANDOM_MISSING
  201. +  *
  202. +  * Your system does not have the random(3) suite of random number
  203. +  * generating routines.  These are different than the old rand(3)
  204. +  * routines!
  205. +  */
  206. + /* #define RANDOM_MISSING    1 */
  207. + /*
  208. +  * STRCASE_MISSING
  209. +  *
  210. +  * Your system does not have the strcasemp() and strncasecmp()
  211. +  * routines that originated in Berkeley Unix.
  212. +  */
  213. + /* #define STRCASE_MISSING    1 */
  214. + /*
  215. +  * STRCHR_MISSING
  216. +  *
  217. +  * Your system does not have the strchr() and strrchr() functions.
  218. +  */
  219. + /* #define STRCHR_MISSING    1 */
  220. + /*
  221. +  * STRERROR_MISSING
  222. +  *
  223. +  * Your system lacks the ANSI C strerror() routine for returning the
  224. +  * strings associated with errno values.
  225. +  */
  226. + /* #define STRERROR_MISSING    1 */
  227. + /*
  228. +  * STRTOD_MISSING
  229. +  *
  230. +  * Your system does not have the strtod() routine for converting
  231. +  * strings to double precision floating point values.
  232. +  */
  233. + /* #define STRTOD_MISSING    1 */
  234. + /*
  235. +  * STRFTIME_MISSING
  236. +  *
  237. +  * Your system lacks the ANSI C strftime() routine for formatting
  238. +  * broken down time values.
  239. +  */
  240. + /* #define STRFTIME_MISSING    1 */
  241. + /*
  242. +  * TZSET_MISSING
  243. +  *
  244. +  * If you have a 4.2 BSD vintage system, then the strftime() routine
  245. +  * supplied in the missing directory won't be enough, because it relies on the
  246. +  * tzset() routine from System V / Posix.  Fortunately, there is an
  247. +  * emulation for tzset() too that should do the trick.  If you don't
  248. +  * have tzset(), define this.
  249. +  */
  250. + /* #define TZSET_MISSING    1 */
  251. + /*
  252. +  * TZNAME_MISSING
  253. +  *
  254. +  * Some systems do not support the external variables tzname and daylight.
  255. +  * If this is the case *and* strftime() is missing, define this.
  256. +  */
  257. + /* #define TZNAME_MISSING    1 */
  258. + /*
  259. +  * STDC_HEADERS
  260. +  *
  261. +  * If your system does have ANSI compliant header files that
  262. +  * provide prototypes for library routines, then define this.
  263. +  */
  264. + #define STDC_HEADERS    1
  265. + /*
  266. +  * NO_TOKEN_PASTING
  267. +  *
  268. +  * If your compiler define's __STDC__ but does not support token
  269. +  * pasting (tok##tok), then define this.
  270. +  */
  271. + /* #define NO_TOKEN_PASTING    1 */
  272. + /*****************************************************************/
  273. + /* Stuff related to the Standard I/O Library.             */
  274. + /*****************************************************************/
  275. + /* Much of this is (still, unfortunately) black magic in nature. */
  276. + /* You may have to use some or all of these together to get gawk */
  277. + /* to work correctly.                         */
  278. + /*****************************************************************/
  279. + /*
  280. +  * NON_STD_SPRINTF
  281. +  *
  282. +  * Look in your /usr/include/stdio.h file.  If the return type of the
  283. +  * sprintf() function is NOT `int', define this.
  284. +  */
  285. + /* #define NON_STD_SPRINTF    1 */
  286. + /*
  287. +  * VPRINTF_MISSING
  288. +  *
  289. +  * Define this if your system lacks vprintf() and the other routines
  290. +  * that go with it.  This will trigger an attempt to use _doprnt().
  291. +  * If you don't have that, this attempt will fail and you are on your own.
  292. +  */
  293. + /* #define VPRINTF_MISSING    1 */
  294. + /*
  295. +  * Casts from size_t to int and back.  These will become unnecessary
  296. +  * at some point in the future, but for now are required where the
  297. +  * two types are a different representation.
  298. +  */
  299. + /* #define SZTC */
  300. + /* #define INTC */
  301. + /*
  302. +  * SYSTEM_MISSING
  303. +  *
  304. +  * Define this if your library does not provide a system function
  305. +  * or you are not entirely happy with it and would rather use
  306. +  * a provided replacement (atari only).
  307. +  */
  308. + /* #define SYSTEM_MISSING   1 */
  309. + /*
  310. +  * FMOD_MISSING
  311. +  *
  312. +  * Define this if your system lacks the fmod() function and modf() will
  313. +  * be used instead.
  314. +  */
  315. + /* #define FMOD_MISSING    1 */
  316. + /*******************************/
  317. + /* Gawk configuration options. */
  318. + /*******************************/
  319. + /*
  320. +  * DEFPATH
  321. +  *
  322. +  * The default search path for the -f option of gawk.  It is used
  323. +  * if the AWKPATH environment variable is undefined.  The default
  324. +  * definition is provided here.  Most likely you should not change
  325. +  * this.
  326. +  */
  327. + /* #define DEFPATH    ".:/usr/lib/awk:/usr/local/lib/awk" */
  328. + /* #define ENVSEP    ':' */
  329. + /*
  330. +  * alloca already has a prototype defined - don't redefine it
  331. +  */
  332. + /* #define ALLOCA_PROTO    1 */
  333. + /*
  334. +  * srandom already has a prototype defined - don't redefine it
  335. +  */
  336. + /* #define SRANDOM_PROTO    1 */
  337. diff -2rcN gawk-2.14/dfa.h gawk/dfa.h
  338. *** gawk-2.14/dfa.h    Tue Jul 28 12:32:40 1992
  339. --- gawk/dfa.h    Wed Jan 27 21:12:13 1993
  340. ***************
  341. *** 176,180 ****
  342.   
  343.   /* Number of bits in an unsigned char. */
  344. ! #define CHARBITS 8
  345.   
  346.   /* First integer value that is greater than any character code. */
  347. --- 176,182 ----
  348.   
  349.   /* Number of bits in an unsigned char. */
  350. ! #ifndef AMIGA
  351. !   #define CHARBITS 8
  352. ! #endif
  353.   
  354.   /* First integer value that is greater than any character code. */
  355. ***************
  356. *** 182,186 ****
  357.   
  358.   /* INTBITS need not be exact, just a lower bound. */
  359. ! #define INTBITS (CHARBITS * sizeof (int))
  360.   
  361.   /* Number of ints required to hold a bit for every character. */
  362. --- 184,190 ----
  363.   
  364.   /* INTBITS need not be exact, just a lower bound. */
  365. ! #ifndef AMIGA
  366. !   #define INTBITS (CHARBITS * sizeof (int))
  367. ! #endif
  368.   
  369.   /* Number of ints required to hold a bit for every character. */
  370. diff -2rcN gawk-2.14/regex.h gawk/regex.h
  371. *** gawk-2.14/regex.h    Tue Jul 28 13:25:56 1992
  372. --- gawk/regex.h    Wed Jan 27 21:10:53 1993
  373. ***************
  374. *** 31,35 ****
  375.   
  376.   /* Maximum number of duplicates an interval can allow.  */
  377. ! #define RE_DUP_MAX  ((1 << 15) - 1) 
  378.   
  379.   
  380. --- 31,37 ----
  381.   
  382.   /* Maximum number of duplicates an interval can allow.  */
  383. ! #ifndef AMIGA
  384. !   #define RE_DUP_MAX  ((1 << 15) - 1) 
  385. ! #endif
  386.   
  387.   
  388. diff -2rcN gawk-2.14/version.c gawk/version.c
  389. *** gawk-2.14/version.c    Fri Jun 19 18:47:42 1992
  390. --- gawk/version.c    Wed Jan 27 21:47:47 1993
  391. ***************
  392. *** 1,3 ****
  393. --- 1,4 ----
  394.   char *version_string = "@(#)Gnu Awk (gawk) 2.14";
  395. + char Version[] = "\0$VER: GNU_awk_version_2.14_(27.01.93)";
  396.   
  397.   /* 1.02        fixed /= += *= etc to return the new Left Hand Side instead
  398.